package com.example.cloud.model.finance;

import com.example.cloud.model.common.CommonModel;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.math.BigDecimal;

/**
 * Created by wangtao on 2018/7/30.
 * 付款详情
 */
@Entity(name = "finance_payment_details")
@Data
public class PaymentDetails extends CommonModel {
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Long id;
    // 记录编号
    @Column(name = "record_id")
    private Long recordId;
    // 记录类型
    @Column(name = "record_type")
    private int recordType;
    // 储值账户
    @Column(name = "store")
    private BigDecimal store;
    // 赠送账户
    @Column(name = "gift")
    private BigDecimal gift;
    // 银行卡
    @Column(name = "bank_card", precision = 12, scale = 2)
    private BigDecimal bankCard;
    // 支付宝
    @Column(name = "alipay", precision = 12, scale = 2)
    private BigDecimal alipay;
    // 微信
    @Column(name = "wechat", precision = 12, scale = 2)
    private BigDecimal wechat;
    // 现金
    @Column(name = "cash", precision = 12, scale = 2)
    private BigDecimal cash;
}
